package com.yun.zhong.fu.demo.threadpool;

import com.alibaba.nacos.common.executor.ExecutorFactory;
import com.alibaba.nacos.common.executor.NameThreadFactory;

import java.util.concurrent.ScheduledExecutorService;

/**
 * @Author RenPu
 * @Date 2022/4/28 17:28
 * @Version 1.0
 * @Description:
 **/
public class GolableExctor {

    private static final ScheduledExecutorService DISTRO_NOTIFY_EXECUTOR = ThreadPool
            .newSingleScheduledExecutorService("test_group",
                    new NameThreadFactory("com.alibaba.nacos.naming.distro.notifier"));

    public static void submitDistroNotifyTask(Runnable runnable) {
        DISTRO_NOTIFY_EXECUTOR.submit(runnable);
    }
}
